package factory.funfactory;

import factory.funfactory.AdvertisingScreenFactory;
import factory.funfactory.HumanInteractionSceenFactory;
import factory.funfactory.IDevicesFactory;
import factory.funfactory.SplicingSceenFactory;
import factory.modules.AdvertisingSceen;
import factory.modules.Devices;

/**
 * @author Feng
 * @date 2019/3/9 17:42
 */
public class MainTest {
    public static void main(String[] args) {
        IDevicesFactory devicesFactory = new AdvertisingScreenFactory();
        Devices devices1 = devicesFactory.create();
        devices1.show();

        IDevicesFactory devicesFactory1 = new HumanInteractionSceenFactory();
        Devices devices = devicesFactory1.create();
        devices.show();

        IDevicesFactory devicesFactory2 = new SplicingSceenFactory();
        Devices devices2 = devicesFactory2.create();
        devices2.show();
    }
}
